package com.crm.model.qo.contractManager;

import com.crm.model.entity.couponManager.Coupon;
import com.crm.model.qo.couponManager.ContractCouponQO;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.multipart.MultipartFile;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 新增合同
 * @author luojie
 * @date 2021/3/17 13:54
 */
@Data
public class CustomerContractAddQO {

    //合同id
    private String contractId;
    //订单id
    private String orderId;
    //合同类型
    private String contractType;
    //客户id
    private String customerId;
    //客户名称
    private String customerName;
    //客户类型
    private String customerType;
    //合同状态
    private String contractStatus;
    //合同审核状态
    private String contractReviewStatus;
    //客户联系人id
    private String contactId;
    //客户联系人名称
    private String contactName;
    //联系方式
    private String contactDetails;
    //客户邮箱
    private String customerEmail;
    //会员主合同
    private String masterMembershipContract;
    //回款状态：0-未回款；1-已回款；3-部分回款
    private String paymentStatus;
    // 起止时间-开始时间（新）
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date contractNewStartDate;
    // 起止时间-结束时间（新）
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date contractNewEndDate;

    // 起止时间-开始时间（旧合同续费用）
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date contractOldStartDate;
    // 起止时间-结束时间（旧合同续费用）
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date contractOldEndDate;
    //回款日期
    private Date payBackDate;
    //付款账号
    private String paymentAccount;
    //支付方式
    private String paymentMethod;
    //关联跟进记录
    private String followRecordId;
    //关联赢单商机
    private String opportunityId;
    //商机标题
    private String opportunityTitle;
    //合作开发人员
    private List<ContractCoDeveloperQO> coDeveloperList;
    //是否是合作开发
    private String whetherCooperateDevelopment;
    //审核是否加盖公章
    private String applyElectronicContract;
    //是否保密
    private String whetherKeepSecret;
    //是否会员
    private String whetherCheck;
    //合同分类  0合同列表入口 1商机合同
    private Integer contractCategory;


    //附加费用
    //金额
    private BigDecimal orderSurcharge;
    //备注
    private String orderSurchargeRemark;

    //合同金额
    //合同总金额
    private BigDecimal contractTotalAmount;
    //合同优惠总金额
    private BigDecimal contractDiscountTotalAmount;
    //合同实际总金额
    private BigDecimal contractActualTotalAmount;
    //应收款
    private BigDecimal contractReceivables;

    //合同附件
    private String contractAnnexId;
    //合同审核
    private String reviewAnnexId;
    //审核备注
    private String contractReviewNotes;

    private List<ContractCouponQO> contractCouponQOList;

   //产品ModelList
    private List<CustomerContractProductAddQO> customerContractProductAddQOList;
    //活动ModelList
    private List<CustomerActivityProductAddQO> customerActivityProductAddQOList;
    //赠品活动ModelList
    private List<CustomerGiftActivityProductAddQO> customerGiftActivityProductAddQOList;

}
